<script setup lang="ts">
import { useRouter } from 'vue-router';
const router = useRouter();

const goToRealNames=() => {
router.push({
  path:'realNameAuthentication'
})
}
const goToEditPassword=() => {
router.push({
  path:'changeYourPassword'
})
}
</script>

<template>
  <div class="container">
    <div class="header">
      <NavBar title="安全设置" :showRightIcon="false" />
    </div>
    <div class="content">
      <div class="security-settings-box">
        <div class="security-settings-box-li flex middle between">
          <div class="security-settings-box-li-left flex middle">
            <img src="@/assets/images/icon/my-account/login-password.png" />
            <div class="security-settings-box-li-middle flex middle column center">
              <div class="security-settings-box-li-middle-top">**********</div>
              <div class="security-settings-box-li-middle-bom">登录密码</div>
            </div>
          </div>
          <div @click="goToEditPassword" class="security-settings-box-li-right flex middle center settingsColorBlue">
            更改
          </div>
        </div>
        <van-divider style="margin:20px 0" />
        <div class="security-settings-box-li flex middle between">
          <div class="security-settings-box-li-left flex middle">
            <img src="@/assets/images/icon/my-account/smrz.png" />
            <div class="security-settings-box-li-middle flex middle column center">
              <div class="security-settings-box-li-middle-top">实名认证</div>
            </div>
          </div>
          <div @click="goToRealNames" class="security-settings-box-li-right flex middle center settingsColorRed ">
            未实名
          </div>
        </div>
        <van-divider style="margin:20px 0" />
        <div class="flex end">
        <div class="security-settings-box-li-right flex middle center settingsColorBlue " style="margin-right:12px;">
          已审核
        </div>
        <div class="security-settings-box-li-right flex middle center settingsColorYellow ">
          审核中
        </div>
        </div>
      </div>
    </div>

  </div>
</template>

<style scoped lang="scss">
.security-settings-box {
  padding: 8px 10px;

  &-li {
    &-left {
      &>img {
        height: 16px;
        margin-right: 6px;
      }
    }

    &-middle {
      &-top {
        font-size: 8px;
        font-weight: 600;

      }

      &-bom {
        font-size: 7px;
        font-weight: 300;
        margin-left: -8px;
      }
    }

    &-right {
      padding: 5px 0px;
      border: 1px solid #E7E7E7;
      border-radius: 100px;
      font-size: 6px;
      font-weight: 600;
      width: 34px
    }
  }

}
</style>
